package com.ahsjdy.st.stbomanagerweb.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

/**
 * @Description
 * @Author xuetao wang
 * @Date 2020/8/2
 */
@Controller
public class IndexController extends BaseController {

    @RequestMapping("/")
    public String index() {
        return "login";
    }

    @RequestMapping("/user/logout")
    public String logout(HttpSession session) {
        session.invalidate();
        return "login";
    }
}
